package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 会员账号交易佣金流水
 * Created by zhangjh on 2017/03/07.
 */
@Entity
@Table(name = "mall_member_transaction_commission_flow")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class MallMemberTransactionCommissionFlow extends IDEntityMall {

    /**
     *流水号
     */
    @Column(columnDefinition = "varchar(100) comment '流水号'")
    private String seqNo;

    /**
     * 平台ID
     */
    @Column(columnDefinition = "bigint(20) comment '平台ID'")
    private Long mallId;

    /**
     * 会员账号ID
     */
    @Column(columnDefinition = "bigint(20) comment '平台商户ID'")
    private Long mallMemberId;

    /**
     * 结算日
     */
    @Column(columnDefinition = "varchar(30)  comment '结算日'")
    private String settlementDate;


    /**
     *交易金额
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '交易金额'")
    private BigDecimal transactionAmount;

    /**
     *交易佣金率
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '交易佣金率'")
    private BigDecimal commissionRate;

    /**
     *金额
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '金额'")
    private BigDecimal amount;

    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(5000)  comment '备注'")
    private String remark;

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getMallMemberId() {
        return mallMemberId;
    }

    public void setMallMemberId(Long mallMemberId) {
        this.mallMemberId = mallMemberId;
    }

    public String getSettlementDate() {
        return settlementDate;
    }

    public void setSettlementDate(String settlementDate) {
        this.settlementDate = settlementDate;
    }

    public BigDecimal getTransactionAmount() {
        return transactionAmount;
    }

    public void setTransactionAmount(BigDecimal transactionAmount) {
        this.transactionAmount = transactionAmount;
    }

    public BigDecimal getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(BigDecimal commissionRate) {
        this.commissionRate = commissionRate;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "MallMemberTransactionCommissionFlow{" +
                "seqNo='" + seqNo + '\'' +
                ", mallId=" + mallId +
                ", mallMemberId=" + mallMemberId +
                ", settlementDate='" + settlementDate + '\'' +
                ", transactionAmount=" + transactionAmount +
                ", commissionRate=" + commissionRate +
                ", amount=" + amount +
                ", remark='" + remark + '\'' +
                '}';
    }
}
